<template>
  <view
    class="signup-success-mask"
    @touchmove.stop.prevent
  >
    <view class="signup-success-modal">
      <image
        class="success-img"
        src="/static/icon/success_img.png"
      />
      <image
        class="close-icon"
        src="/static/icon/close_icon.png"
        @click="$emit('close')"
      />
      <view class="success-title">报名成功</view>
      <button
        class="success-btn"
        @click="$emit('close')"
        >我知道了</button
      >
    </view>
  </view>
</template>

<script>
  export default {
    name: 'SignUpSuccessModal'
  }
</script>

<style scoped lang="scss">
  .signup-success-mask {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .signup-success-modal {
    width: 630rpx;
    height: 431rpx;
    background: #fcf4dd;
    border-radius: 60rpx;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
  }
  .success-img {
    width: 616rpx;
    height: 300rpx;
    position: absolute;
    top: -140rpx;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
  }
  .close-icon {
    width: 30rpx;
    height: 30rpx;
    position: absolute;
    top: 32rpx;
    right: 32rpx;
    z-index: 3;
  }
  .success-title {
    margin-top: 193rpx;
    font-size: 48rpx;
    color: #4b2e0e;
    font-weight: 600;
    text-align: center;
  }
  .success-btn {
    width: 360rpx;
    height: 80rpx;
    background: #0c8d6a;
    border-radius: 40rpx;
    color: #fff;
    font-size: 32rpx;
    font-weight: 600;
    margin: 64rpx auto 0 auto;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
  }
</style>
